﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter24.Examples
{
    using Databases;
    public class Code01
    {
        public static void BeginEx01()
        {
            var entities = new AdventureWorks2008Entities();
            var queryResults =
                from c in entities.Customers
                where c.StoreID == 1028
                select new { ID = c.CustomerID, AccountNumber = c.AccountNumber, ModifiedDate = c.ModifiedDate };
            foreach (var item in queryResults)
            {
                Console.WriteLine(item);
            }
            Console.WriteLine("Press Enter/Return to continue...");
            Console.ReadLine();
        }
    }
}
